<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python
    from mnemoply.utils import replace_query_var
    from genshi.input import HTML
?>
<tbody xmlns:py="http://genshi.edgewall.org/">
    <tr py:for="i,record in enumerate(records)"
        onmouseout="bgColor=''"
        onmouseover="bgColor='#bbbbee'"
        class="row_${i}">
        <td>
            <input type="checkbox" name="objid_${record[0]}" onchange="changeRowColor(this)" class="row_${i}"/>
        </td>
        <td py:for="value in record[1:]" >
            <a py:if="value is not None" href="${record[0]}/" py:content="value" class="withouth_decoration"></a>
            <span py:strip="True" py:if="value is None">&nbsp;</span>
        </td>
        <td nowrap="nowrap">
            <div class="center" id="object-local-menu"
                 py:if="defined('object_local_menu') and (len(object_local_menu) > 0)">
                <span py:for="mi in object_local_menu">
                    <?python
                    params = dict(mi.params)
                    link = mi.params['link']
                    params['link'] = '%s/%s' %(record[0],link )
                    params['img_attrs']= mi.params.get('img_attrs', dict(width=16, height=16))
                    ?>
                    ${ET(mi.widget(**params)())}
                </span>
                </div>
        </td>
    </tr>
</tbody>
